import request from '@/utils/request'

// 查询作业列表
export function listJob(query) {
  return request({
    url: '/datafactory/job/list',
    method: 'get',
    params: query
  })
}
// 查询作业列表
export function getJobList(query) {
  return request({
    url: '/datafactory/job/getJob',
    method: 'get',
    params: query
  })
}

// 查询作业详细
export function getJob(id) {
  return request({
    url: '/datafactory/job/' + id,
    method: 'get'
  })
}

// 新增作业
export function addJob(data) {
  return request({
    url: '/datafactory/job',
    method: 'post',
    data: data
  })
}

// 修改作业
export function updateJob(data) {
  return request({
    url: '/datafactory/job',
    method: 'put',
    data: data
  })
}

// 删除作业
export function delJob(id) {
  return request({
    url: '/datafactory/job/' + id,
    method: 'delete'
  })
}
